package com.mini.mysql.model;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

@Data
@FieldNameConstants
@NoArgsConstructor
@AllArgsConstructor
@Entity
@DynamicInsert
@DynamicUpdate
@ApiModel(value = "课程信息表")
public class BusinessLessonInfo {

    @Id
    private String lessonId;

    private String teachPlanId;

    private String teachPlanName;

    private Integer businessType;

    private String formSiteId;

    private String paySiteId;

    private String lessonTitle;

    private String lessonSubtitle;

    private String lessonDesc;

    private String lessonUrl;

    private Float lessonPrice;

    private String lessonImgs;

    private Date createTime;

    private Date updateTime;

    private Long createUser;

    private Long updateUser;

    private Integer states;

    private Integer orders;

    private String skuCode;

    private String skuName;

    private Integer createPubType;

    private Long typeId;
}